
<view class="csc" style="width:100%;background-color:#f7f8ff">

    <block wx:if="{{pushData}}">

          <view class="rsc " style="width:100%;margin:10rpx auto;" >
                    <image mode="aspectFill" src="{{v_img||default_img}}" style="width:60rpx; height:60rpx; border-radius:50%; margin-right:10rpx;margin-left:35rpx;" ></image>
                    <text style="font-size:28rpx; color:grey; font-weight:500rpx;margin-right:15rpx; flex:1; ">{{nickName||'匿名'}}</text>
                    <view class='rank-box' bindtap='tochart'>
    <view class='text-blue'>趋势<text class='cuIcon-rank'></text></view>
    </view>
                     <view class="vote-item-ft2">
                 
                                
                                    <button bindtap="onShareAppMessage" data-nickname="{{vote.nick_name}}" data-voteid="{{vote.objectId}}" 
                                     data-title="{{vote.title}}"
                                    openType="share" plain="true">
                                   <image src="../../img/myshare.png" class="myshare"></image>
                                       
                                    </button>
                                </view>
                    
                </view>

        <image  mode="aspectFill" src="{{pushData.posterUrl}}" style="width:100%; height:calc(100vw * 4 / 5);" wx:if="{{pushData.posterUrl&&!pushData.closeHeadImg}}"></image>
        <view class="rbs" style="width:calc(100% - 80rpx);margin:20rpx auto 30rpx auto;">
            <view style="flex:1;">
              
                <view  class='flex'>
                        <view class="ccc tip-back-mid" style="color:red; margin-right:15rpx; " wx:if="{{pushData.close}}">
                            <view>投票结束</view>
                        </view>
                        <view class="ccc tip-back-mid" style="color:rgb(58, 107, 234); margin-right:15rpx; ">
                            <view wx:if="{{pushData.multiple}}">
                                <text>多选</text>
                                <text decode="{{true}} " wx:if="{{pushData.multiple}}">&ensp;最多{{maxSelectCount}}个</text>
                                <text></text>
                            </view>
                            <view wx:else>单选</view>
                        </view>
                        <view class="ccc tip-back-mid" style="color:rgb(232, 164, 0); margin-right:15rpx; " wx:if="{{pushData.daily}}">
                            <view>每日一投</view>
                        </view>
                    
                     
                        <!-- <view class="ccc tip-back-mid" style="color:rgb(46, 46, 46); margin-right:15rpx; " wx:if="{{pushData.location}}">
                            <view>地图展示</view>
                        </view> -->


                        
                  
 <view style="font-size: 40rpx; font-weight:bold; ">{{pushData.title}}</view>
               

                 </view>
                   <view wx:if="{{pushData.description}}" class='text-df text-gray margin-top-sm desc-box'>{{pushData.description}}</view>

                    <view class='vote-all margin-top margin-bottom-sm'>
                                <text  > {{group_count||0}} <text class='myman'>次投票</text></text>
                              
                            </view>
      
      
            
            </view>
        </view>

    


<view catchtap="onOptionItem" data-current="{{index}}" class="rbc margin-bottom"  style="font-size:28rpx; width:90%; background-color:white;box-shadow : 0 1px 8px rgba(183, 232, 255,0.4) ; "  wx:for="{{showData}}" wx:key="index" wx:if="{{!showData[0].url}}">
        <view class="ccs " style="width:100%  " >
            <view class="rbc" style="width:100%; position:relative; top:0; ">
                <view class="ces" style="height:100%; width:100%; position:absolute; top:0;z-index:999; " wx:if="{{has_answer&&!daily}}">
                    <view style="width:{{tools.prenum(item.num,group_count)}}; height:100%;" >
                        <view class="slide-in" style="width:100%; height:100%; {{selectList[index]?'background-color:rgb(222,229,241);':'background-color:rgb(235,235,235);'}}"></view>
                       
                    </view>
                </view>

                <view  class="ccc" style="z-index:10;" >
                   
                    <view style="height:30rpx;"></view>
                    <view class="rsc" >
                        <view  style="width:40rpx; height:40rpx;"></view>
                        <block wx:if="{{selectList[index]}}">
                   
                            <image  data-current="{{index}}" src="../../img/check_f.png" style="opacity:{{pushData.already?0.5:1}};width:40rpx; height:40rpx; border-radius:{{pushData.mulSelect?10:50}}%;" ></image>
                            <view catchtap="onOptionItem" data-current="{{index}}" style="width:30rpx; height:40rpx; "></view>
                        </block>
                        <block wx:elif="{{!pushData.already&&!pushData.close}}">
                       
                            <view catchtap="onOptionItem" data-current="{{index}}" style="width:40rpx; height:40rpx; border:grey 2rpx solid;box-sizing: border-box; border-radius:10%; opacity:0.5;" wx:if="{{pushData.mulSelect}}"></view>
                            <view catchtap="onOptionItem" data-current="{{index}}" style="width:40rpx; height:40rpx; border:grey 2rpx solid;box-sizing: border-box; border-radius:50%;opacity:0.5;" wx:else></view>
                            <view  data-current="{{index}}" style="width:30rpx; height:40rpx; "></view>
                        </block>
                        <view  class="" data-current="{{index}}" style="flex:1; font-weight:bold;" wx:if="{{showData[index]}}">{{showData[index].value}}</view>
                    
                        <!-- <view style="width:30rpx; height:40rpx; "></view> -->
                    </view>
                    <view style="height:30rpx;"></view>
                </view>
                <view class="rbc" style="font-size:25rpx;z-index:10; font-weight:bold; color:rgb(61,107,233);z-index:999;" wx:if="{{has_answer}}">
                    <view class="rec" style="width:100rpx;">
                        <view>{{item.num}}票</view>
                    </view>
                    <view class="rec" style="width:100rpx;">
                        <view>{{tools.prenum(item.num,group_count)}}</view>
                    </view>
                    <view style="width:40rpx;"></view>
                </view>
            </view>
       
            
           
        </view>
    </view>

 <block wx:if="{{showData[0].url}}" >
            <view class='flex'>
              <view  wx:for="{{showData}}" wx:key="index">
              
                
                    <view class="list-item " >
                    
                        <view class="list-wrap pos-r"  catchtap="onOptionItem" data-current="{{index}}" >
                 
     
                            <view class="list-image">
                                <image bindtap="preViewOptImage" data-index="{{index}}" lazyLoad="true" mode="aspectFill" src="{{item.url}}"></image>
                            </view>
                            <view class='msgfoot'>{{showData[index].value}}</view>
                            
                            <view class='protop' wx:if="{{selectList[index]}}">
                     
                            <image  src="../../img/check_f.png" style="opacity:{{pushData.already?0.5:1}};width:40rpx;z-index:9999; height:40rpx; border-radius:{{pushData.mulSelect?10:50}}%;{{has_answer?'top:30rpx':''}}" ></image>
                            <view style="width:30rpx; height:40rpx; "></view>
                        </view>
                            <view class='probox' wx:if="{{has_answer}}">
                                        <view class="cu-progress  radius striped ">
                                   <view class="bg-blue" style="width:{{tools.prenum(item.num,group_count)}};" >{{tools.prenum(item.num,group_count)}}</view>
                                </view>
                                </view>
              
                        </view>
                        
                    </view>
                
               </view>
                  </view>
             
            </block>


      <!-- <template is="let-options" data="{{index:index,pushData:pushData,showData:pushData.votearr.opts,action:action,selectList:selectList}}"  wx:key="index"></template> -->


   
        <button class="cu-btn round bg-blue sub_btn" bindgetuserinfo="getinfo" openType="getUserInfo"   wx:if="{{!has_answer&&!pushData.anonymous&&showLogin}}" >登 录</button>

         <button class="cu-btn round bg-blue sub_btn" bindtap="submit" disabled="{{has_answer&&!daily}}" wx:else>提 交</button>

          <button class="cu-btn round bg-blue sub_btn" bindtap="gohome" >回到首页</button>
        <view class='mypagebox'></view>


    
        
      


    </block>
</view>
<wxs module="tools" src="../../pages/wxs/func.wxs" />